%header.main-header
	%a.logo{ href: '#' }
		%span.logo-mini
			= image_tag 'logo.svg', class: 'brand-logo', alt: translate('cmb')
		%span.logo-lg
			= image_tag 'logo.svg', class: 'brand-logo', alt: translate('cmb')
			= translate 'product'
	%nav.navbar.navbar-static-top{ role: 'navigation' }
		%a.sidebar-toggle{ href: '#', role: 'button', data: { toggle: 'offcanvas' } }
			%span.sr-only= translate 'index.index.sidebar.toggle'
		.navbar-custom-menu
			%ul.nav.navbar-nav
				%li
					%a{ href: '#' }
						%span.fa.fa-user
							= @user.username
				%li
					- if can? :work, User
						%a{ href: '#' }
							%span.fa.fa-toggle-up
								= translate 'index.index.header.work'
				%li
					= link_to session_url, method: 'delete' do
						%span.fa.fa-sign-out
							= translate 'button.logout'